package entity;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Item implements Serializable {


    /**
     * 商品id
     */
    private Long id;

    /**
     * SKU名称
     */
    private String name;

    /**
     * 价格（分）
     */
    private Integer price;

    /**
     * 库存数量
     */
    private Integer stock;

    /**
     * 商品图片
     */
    private String image;

    /**
     * 类目名称
     */
    private String category;

    /**
     * 品牌名称
     */
    private String brand;

    /**
     * 规格
     */
    private String spec;

    /**
     * 销量
     */
    private Integer sold;

    /**
     * 评论数
     */
    private Integer commentCount;

    /**
     * 是否是推广广告，true/false
     */

    private Boolean isAD;

    /**
     * 商品状态 1-正常，2-下架，3-删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    private Long creater;

    /**
     * 修改人
     */
    private Long updater;


    public Item() {
    }

    public Item(Long id, String name, Integer price, Integer stock, String image, String category, String brand, String spec, Integer sold, Integer commentCount, Boolean isAD, Integer status, LocalDateTime createTime, LocalDateTime updateTime, Long creater, Long updater) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.stock = stock;
        this.image = image;
        this.category = category;
        this.brand = brand;
        this.spec = spec;
        this.sold = sold;
        this.commentCount = commentCount;
        this.isAD = isAD;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.creater = creater;
        this.updater = updater;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     *
     * @return price
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 设置
     *
     * @param price
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 获取
     *
     * @return stock
     */
    public Integer getStock() {
        return stock;
    }

    /**
     * 设置
     *
     * @param stock
     */
    public void setStock(Integer stock) {
        this.stock = stock;
    }

    /**
     * 获取
     *
     * @return image
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置
     *
     * @param image
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取
     *
     * @return category
     */
    public String getCategory() {
        return category;
    }

    /**
     * 设置
     *
     * @param category
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * 获取
     *
     * @return brand
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 设置
     *
     * @param brand
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 获取
     *
     * @return spec
     */
    public String getSpec() {
        return spec;
    }

    /**
     * 设置
     *
     * @param spec
     */
    public void setSpec(String spec) {
        this.spec = spec;
    }

    /**
     * 获取
     *
     * @return sold
     */
    public Integer getSold() {
        return sold;
    }

    /**
     * 设置
     *
     * @param sold
     */
    public void setSold(Integer sold) {
        this.sold = sold;
    }

    /**
     * 获取
     *
     * @return commentCount
     */
    public Integer getCommentCount() {
        return commentCount;
    }

    /**
     * 设置
     *
     * @param commentCount
     */
    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    /**
     * 获取
     *
     * @return isAD
     */
    public Boolean getIsAD() {
        return isAD;
    }

    /**
     * 设置
     *
     * @param isAD
     */
    public void setIsAD(Boolean isAD) {
        this.isAD = isAD;
    }

    /**
     * 获取
     *
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置
     *
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取
     *
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     *
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     *
     * @return updateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     *
     * @param updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     *
     * @return creater
     */
    public Long getCreater() {
        return creater;
    }

    /**
     * 设置
     *
     * @param creater
     */
    public void setCreater(Long creater) {
        this.creater = creater;
    }

    /**
     * 获取
     *
     * @return updater
     */
    public Long getUpdater() {
        return updater;
    }

    /**
     * 设置
     *
     * @param updater
     */
    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public String toString() {
        return "Item{id = " + id + ", name = " + name + ", price = " + price + ", stock = " + stock + ", image = " + image + ", category = " + category + ", brand = " + brand + ", spec = " + spec + ", sold = " + sold + ", commentCount = " + commentCount + ", isAD = " + isAD + ", status = " + status + ", createTime = " + createTime + ", updateTime = " + updateTime + ", creater = " + creater + ", updater = " + updater + "}";
    }
}